package org.NooLab.structures.nlp;

import java.io.Serializable;

 



public class NlpWord implements Serializable{

	
	String label = "" ;
	String PosTag = "" ;
	
	Long index = -1L;     // as in a DB
	String sourceID = ""; // sth like a file
	
	String hash1 = "" ;
	String hash2 = "" ;
	
	/** these are NOT positions of occurrence in a doc or sentence,
	 *  but the positional values of ONE occurrence across all perspectives  */
	NlpPositions nlpPositions ; 
	
	
	// ------------------------------------------------------------------------
	public NlpWord(){
	
		nlpPositions = new NlpPositions();
		
	}
	// ------------------------------------------------------------------------

	@Override
	public boolean equals(Object obj){
		boolean rB=true;
		
		if (obj==null){
			return false;
		}
		
		NlpWord cw = ( NlpWord)obj;
		
		rB = (label.contentEquals(cw.label));
		if (rB){
			rB = (this.PosTag.contentEquals(cw.PosTag));
		}
		 
		return rB;
	}

	public String getLabel() {
		return label;
	}


	public void setLabel(String label) {
		this.label = label;
	}


	public String getPosTag() {
		return PosTag;
	}


	public void setPosTag(String posTag) {
		PosTag = posTag;
	}


	public Long getIndex() {
		return index;
	}


	public void setIndex(Long index) {
		this.index = index;
	}


	public String getSourceID() {
		return sourceID;
	}


	public void setSourceID(String sourceID) {
		this.sourceID = sourceID;
	}


	public String getHash1() {
		return hash1;
	}


	public void setHash1(String hash1) {
		this.hash1 = hash1;
	}


	public String getHash2() {
		return hash2;
	}


	public void setHash2(String hash2) {
		this.hash2 = hash2;
	}


	public NlpPositions getNlpPositions() {
		return nlpPositions;
	}


	public void setNlpPositions(NlpPositions nlpPositions) {
		this.nlpPositions = nlpPositions;
	}
	
	
	
	
}
